﻿<Window x:Class="DaphneTranslatorWPF.View.FilePropertiesDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:view="clr-namespace:DaphneTranslatorWPF.View"       
        Title="File Properties" Height="200" Width="500"
        WindowStartupLocation="CenterOwner"
        WindowStyle="ToolWindow"
        Background="{DynamicResource WindowBackgroundBrush}"
        Padding="3" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="110" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Margin="3">Root folder:</TextBlock>
        <TextBox Grid.Row="0" Grid.Column="1" Margin="3" HorizontalAlignment="Stretch"  IsEnabled="False" Text="{Binding Path=PathSelectionViewModel.RootFolder}"/>
        <TextBlock Grid.Row="1" Grid.Column="0" Margin="3">Relative path:</TextBlock>
        <view:PathSelection Grid.Row="1" Grid.Column="1" Margin="3" DataContext="{Binding Path=PathSelectionViewModel}" />
        <TextBlock Grid.Row="2" Grid.Column="0" Margin="3" >File name:</TextBlock>
        <TextBox Grid.Row="2" Grid.Column="1" Margin="3" HorizontalAlignment="Stretch" Text="{Binding Path=FileName, Mode=TwoWay}" />
        <TextBlock Grid.Row="3" Grid.Column="0">Renaming strategy:</TextBlock>
        <StackPanel Grid.Row="3" Grid.Column="1">
            <RadioButton GroupName="RenamingStrategy" IsChecked="{Binding Path=IsAllFilesInGroupSelected, Mode=TwoWay}">Rename all associated files in the group</RadioButton>
            <RadioButton GroupName="RenamingStrategy" IsChecked="{Binding Path=IsNewGroupSelected, Mode=TwoWay}">Create a new file group association</RadioButton>
        </StackPanel>
        <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="3">
            <Button IsDefault="True" Margin="2" Click="Button_Click" Padding="5" >OK</Button>
            <Button IsCancel="True" Margin="2" Padding="5" >Cancel</Button>
        </StackPanel>        
    </Grid>
</Window>
